/* 技艺传承页面样式 */

/* 页面整体样式 */
.craftsmanship-page {
    background-color: #fffbf6;
    color: #333;
}

/* 页面标题区域 */
.page-banner {
    background: linear-gradient(135deg, #000000, #000000);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    opacity: 0.1;
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 通用部分样式 */
.section-title {
    text-align: center;
    color: #c83c23;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #c83c23;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 绣制技法部分样式 */
.techniques-section {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
}

.techniques-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: url('../images/flower-pattern.png');
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
}

.techniques-showcase {
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.technique-tabs {
    display: flex;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    flex: 1;
}

.tab:hover {
    color: #c83c23;
    background-color: rgba(200, 60, 35, 0.05);
}

.tab.active {
    color: #c83c23;
    background-color: #fff;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #c83c23;
}

.technique-content {
    background-color: #fff;
    position: relative;
}

.technique-panel {
    display: none;
    padding: 30px;
    animation: fadeIn 0.5s ease;
}

.technique-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.technique-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.technique-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.3) 100%);
}

.technique-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.technique-image:hover img {
    transform: scale(1.05);
}

.technique-info {
    padding: 20px;
}

.technique-info h3 {
    color: #c83c23;
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(200, 60, 35, 0.2);
    padding-bottom: 10px;
}

.technique-info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.technique-info h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.technique-info ul, .technique-steps ol {
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
}

.technique-info li {
    margin-bottom: 8px;
}

.technique-steps {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c83c23;
}

/* 传承大师部分样式 */
.masters-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
}

.masters-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-image: url('../images/flower-pattern.png');
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.master-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    height: 300px;
}

.master-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.master-image {
    width: 40%;
    overflow: hidden;
    position: relative;
}

.master-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.master-card:hover .master-image img {
    transform: scale(1.1);
}

.master-info {
    width: 60%;
    padding: 25px;
    position: relative;
}

.master-info h3 {
    color: #c83c23;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.master-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.master-detail p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.master-achievements {
    margin-top: 20px;
}

.master-achievements h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.master-achievements ul {
    columns: 2;
    padding-left: 20px;
    color: #666;
}

.master-achievements li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.apprentice-program {
    margin-top: 60px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.apprentice-program h3 {
    color: #c83c23;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.apprentice-program p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.program-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.program-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border-top: 5px solid #c83c23;
}

.program-item:hover {
    transform: translateY(-10px);
}

.program-item h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.program-item p {
    color: #666;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #c83c23;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background-color: #040403;
}

/* 工具材料部分样式 */
.tools-section {
    padding: 80px 0;
    background-color: #fff;
}

.tools-materials {
    margin-top: 40px;
}

.tools-category, .materials-category {
    margin-bottom: 60px;
}

.tools-category h3, .materials-category h3 {
    color: #000000;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.tools-category h3::after, .materials-category h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #000000;
}

.tools-grid, .materials-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.tool-item, .material-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.tool-image, .material-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.tool-image img, .material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-info, .material-info {
    padding: 20px 30px;
    flex-grow: 1;
}

.tool-info h4, .material-info h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.tool-info p, .material-info p {
    color: #666;
    line-height: 1.6;
}

.material-types {
    margin-top: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #000000;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .tool-item, .material-item {
        flex-direction: column;
    }
    
    .tool-image, .material-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: 1fr;
    }
}

.tool-item, .material-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.tool-item:hover, .material-item:hover {
    transform: translateY(-10px);
}

.tool-image, .material-image {
    height: 200px;
    overflow: hidden;
}

.tool-image img, .material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tool-item:hover .tool-image img, .material-item:hover .material-image img {
    transform: scale(1.1);
}

.tool-info, .material-info {
    padding: 20px;
}

.tool-info h4, .material-info h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.tool-info p, .material-info p {
    color: #666;
    line-height: 1.6;
}

.material-types {
    margin-top: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #c83c23;
}

.material-types h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.material-types ul {
    padding-left: 20px;
    color: #666;
}

.material-types li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.tools-care {
    margin-top: 60px;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tools-care h3 {
    color: #c83c23;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.care-tips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.tip-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid #c83c23;
}

.tip-item:hover {
    transform: translateY(-5px);
}

.tip-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.tip-item p {
    color: #666;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .technique-panel.active {
        grid-template-columns: 1fr;
    }
    
    .master-card {
        flex-direction: column;
        height: auto;
    }
    
    .master-image, .master-info {
        width: 100%;
    }
    
    .master-image {
        height: 250px;
    }
    
    .masters-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .technique-tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 0 0 50%;
    }
    
    .master-achievements ul {
        columns: 1;
    }
}

@media (max-width: 576px) {
    .tab {
        flex: 0 0 100%;
    }
    
    .tools-grid, .materials-grid, .care-tips {
        grid-template-columns: 1fr;
    }
}